package com.strive.user.service;

import com.strive.common.model.dto.SysMenu;
import com.strive.common.model.dto.SysRoleMenu;
import com.strive.common.service.ISuperService;

import java.util.List;
import java.util.Set;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/2/23 15:10
 * @Version 1.0
 */
public interface ISysRoleMenuService extends ISuperService<SysRoleMenu> {
    int save(Long roleId, Long menuId);

    int delete(Long roleId, Long menuId);

    List<SysMenu> findMenusByRoleIds(Set<Long> roleIds, Integer type);

    List<SysMenu> findMenusByRoleCodes(Set<String> roleCodes, Integer type);
}
